package com.pointmi.customeraccountdao;

import java.io.Serializable;
import java.util.Date;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.OneToOne;
import javax.persistence.PrimaryKeyJoinColumn;

@Entity(name="passwordReset")
public class PasswordReset implements Serializable {

	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;

	@Id
	@Column
	
	private String customerId;
	
	@Column
	private String passwordResetCode;
	
	@Column
	private Date passwordResetExpiryDate;
	
	@Column
	private Date lastPasswordResetDate;
	
	
	public String getPasswordResetCode()
	{
		return passwordResetCode;
	}
	
	public void setPasswordResetCode(String passwordResetCode)
	{
		this.passwordResetCode = passwordResetCode;
	}
	
	public Date getPasswordResetExpiryDate()
	{
		return passwordResetExpiryDate;
	}
	
	public void setPasswordResetExpiryDate(Date passwordResetExpiryDate)
	{
		this.passwordResetExpiryDate = passwordResetExpiryDate;
	}

	public void setLastPasswordResetDate(Date lastPasswordResetDate)
	{
		this.lastPasswordResetDate = lastPasswordResetDate;
	}
	
	public Date getLastPasswordResetDate()
	{
		return lastPasswordResetDate;
	}
		
	@OneToOne
	@PrimaryKeyJoinColumn
	private Customer customer;
	
	public String getCustomerId()
	{
		return customerId;
	}
	
	public void setCustomerId(String customerId)
	{
		this.customerId = customerId;
	}

	public Customer getCustomer()
	{
		return customer;
	}
	
}

